<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>obs存储文件管理</title>
    <style>
        html{width: 100%;
            height: 100%;
            overflow: hidden;
            font-style: sans-serif;}
        body{width: 100%;
            height: 100%;
            font-family: 'Open Sans',sans-serif;
            margin: 0;
            background-color: #FFFAF0;}
        #upload{   position: absolute;
                top: 30px;
                left:400px;}
    </style>
</head>
<body>
    <form method="post" action="/logout">
            <button type="submit" style="margin:20px">注销</button>
    </form>
    <div id ="upload">
        <form action="/success_up" method="post" enctype="multipart/form-data">
            <input type="file" name="file" />
            <input type="submit"  value="上传文件" style="width: 100px;
            margin-left:400px;
            padding:6px;
            background-color: #428bca;
            border-color: #357ebd;
            color: #fff;
            border-radius: 8px;
            text-align: center;
            vertical-align: middle;
            border: 1px solid transparent;
            font-weight: 500;
            font-size:90%  "/>
        </form>
    </div>
    <div id="file" style="position:absolute;width:50%;height:60%;background-color:white;
                           top:80px;left:400px;border-radius:6px ">
        <table  style="width:100%;border-collapse: collapse">
            <style>
                th{background: #eee;font-weight: normal;}
                td{height: 25px;line-height: 25px;text-align:left;border-top: 1px solid #ccc;}
            </style>
            <tr>
                <th style="width:650px">文件名</th>
                <th>文件大小</th>
            </tr>
            <tr>
                <td>
                    <u1>
                    {% for name in file.keys() %}
                        <li>{{name}}</li>
                    {% endfor %}
                    </u1>
                </td>
                <td>
                    <u2>
                    {% for size in file.values() %}
                        <li>{{size}}</li>
                    {% endfor %}
                    </u2>
                </td>
            </tr>
        </table>
        <form method="post" action="/success_down" style="margin-top:370px">
            <input type="password" name="down_file" placeholder="请输入要下载的文件名">
            <button type="submit"  >下载</button>{{msg1}}
        </form>
        <form method="post" action="/success_del" style="margin-top:10px">
            <input type="password" name="del_file" placeholder="请输入要删除的文件名">
            <button type="submit"  >删除</button>{{msg2}}
        </form>
    </div>
</body>
</html>